public event EventHandler<AnnNotifyCollectionChangedEventArgs> CollectionChanged
add_CollectionChanged(function(sender, e)) remove_CollectionChanged(function(sender, e))
The event handler receives an argument of type AnnNotifyCollectionChangedEventArgs containing data related to this event. The following AnnNotifyCollectionChangedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Action | Gets the action that caused the event. |
NewItems | Gets the list of new items involved in the change. |
NewStartingIndex | Gets the index at which the change occurred. |
OldItems | Gets the list of items affected by a Replace, Remove, or Move action. |
OldStartingIndex | Gets the index at which a Move, Remove, or Replace action occurred. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2